package com.owen.pojo;

import java.util.Date;

/**
 * 字典实体类
 */
public class Dictionary {

    // 主键ID
    private Integer id;

    // 名称
    private String name;

    // 数据日期
    private Date timeOn;

    // 备注
    private String notes;

    // 代码
    private String dicCode;

    // 条目值
    private String dicVarchar;

    // 结构类型
    private Integer type;

    // 所属系统
    private String company;

    // 父id
    private Integer parentId;

    // 顺序号
    private Integer dicSort;

    // 0:删了，1：存在
    private Integer isDel;

    /**
     * 字典无参构造方法
     */
    public Dictionary() {
    }

    /**
     * 字典有参构造方法
     * @param id 主键ID
     * @param name 名称
     * @param timeOn 数据日期
     * @param notes 备注
     * @param dicCode 代码
     * @param dicVarchar 条目值
     * @param type 结构类型
     * @param company 所属系统
     * @param parentId 父id
     * @param dicSort 顺序号
     * @param isDel 0:删了，1：存在
     */
    public Dictionary(Integer id, String name, Date timeOn, String notes, String dicCode, String dicVarchar, Integer type, String company, Integer parentId, Integer dicSort, Integer isDel) {
        this.id = id;
        this.name = name;
        this.timeOn = timeOn;
        this.notes = notes;
        this.dicCode = dicCode;
        this.dicVarchar = dicVarchar;
        this.type = type;
        this.company = company;
        this.parentId = parentId;
        this.dicSort = dicSort;
        this.isDel = isDel;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getTimeOn() {
        return timeOn;
    }

    public void setTimeOn(Date timeOn) {
        this.timeOn = timeOn;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getDicCode() {
        return dicCode;
    }

    public void setDicCode(String dicCode) {
        this.dicCode = dicCode;
    }

    public String getDicVarchar() {
        return dicVarchar;
    }

    public void setDicVarchar(String dicVarchar) {
        this.dicVarchar = dicVarchar;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getDicSort() {
        return dicSort;
    }

    public void setDicSort(Integer dicSort) {
        this.dicSort = dicSort;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return "Dictionary{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", timeOn=" + timeOn +
                ", notes='" + notes + '\'' +
                ", dicCode='" + dicCode + '\'' +
                ", dicVarchar='" + dicVarchar + '\'' +
                ", type='" + type + '\'' +
                ", company='" + company + '\'' +
                ", parentId=" + parentId +
                ", dicSort=" + dicSort +
                ", isDel=" + isDel +
                '}';
    }
}
